package com.le.constant;

/**
 * @author liangyongle
 * @date 2018/8/14 0014
 */
public enum ErrorMessageEnum implements BusinessMessage {
    /** 内部未知错误 */
    SERVER_INTERNAL_ERROR(-1, "服务器内部错误"),
    ERROR_JSON_INPUT(-10001, "JSON输入格式有误"),
    ERROR_REQUEST_METHOD(-5, "错误的请求方式"),
    ;

    /**  编号 */
    private Integer code;

    /**  信息 */
    private String msg;

    ErrorMessageEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
